<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<div class="t_bar">
	<span class="color_red">*</span>${param.title }${param.unit }
</div>
	<table  id="tblStageCheck" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<thead >
					<tr style="organization_finances/financeborder:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="30px">选择</th>
						<th class="TblHead" align="center"  width="30px">序号</th>
						<th class="TblHead" align="center"  width="125px">开始日期</th>
						<th class="TblHead" align="center"  width="125px">结束日期</th>
						<th class="TblHead" align="center"  >检查要点（限500字）</th> 
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td>&nbsp;
							<input type="radio" class="radiobutton" name="selcheckplans" >
						</td>
						<td align="center">&nbsp;
							<span name="stage_check|plan[0]@seq_no" >[index]</span> 
						</td>
						<td align="center">&nbsp;
							<input  id="checkplan_start_date_[0]" name="stage_check|plan[0]|start_date" label="开始日期"value="" class=" required input_text date  dateCompare:checkplan_end_date_[0] dateCompareAfterE:checkplan_start_date_[0]:start_date" style="width:70px" label="开始日期" />
						</td>
						<td align="center">&nbsp;<input  id="checkplan_end_date_[0]" name="stage_check|plan[0]|end_date" label="结束日期" value="" class=" required input_text date dateCompareBeforeE:checkplan_end_date_[0]:end_date " style="width:70px" label="结束日期" /> </td> 
						<td>&nbsp;<textarea name="stage_check|plan[0]|content" class="input_textarea required maxlength:500" label="检查要点"   rows="5" style="width:98%"></textarea>
						<input type="hidden" name="stage_check|plan[0]|content_hidden" />
						</td> 
					</tr>
					
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/stage_check/plan" var="checkplan">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td>&nbsp;
							<input type="radio" class="radiobutton" name="selcheckplans" >
						</td>
						<td align="center">
							<span   name="stage_check/plan[${flag}${index}]@seq_no" ><x:out select="$checkplan/@seq_no"/></span> 
						</td>
						<td align="center">&nbsp;
							<c:set var="start_date" scope="page"><x:out select="$checkplan/start_date"/></c:set>
							<input  id="checkplan_start_date_[${flag}${index}]" value="${start_date}" label="开始日期" name="stage_check/plan[${flag}${index}]/start_date" class="required date input_text dateCompare:checkplan_end_date_[${flag}${index}] dateCompareAfterE:checkplan_start_date_[${flag}${index}]:start_date"  style="width:70px" label="开始日期" /> 
						</td>
						<td align="center">&nbsp;
							<c:set var="end_date" scope="page"><x:out select="$checkplan/end_date"/></c:set>
							<input  id="checkplan_end_date_[${flag}${index}]" name="stage_check/plan[${flag}${index}]/end_date" label="结束日期" value="${end_date}" class="required date input_text dateCompareBeforeE:checkplan_end_date_[${flag}${index}]:end_date" style="width:70px" label="结束日期" /> </td> 
						<td>&nbsp;
							<textarea name="stage_check/plan[${flag}${index}]/content" class="input_textarea required maxlength:500" label="检查要点" rows="5" style="width:98%"><x:out select="$checkplan/content"/></textarea>
							<input type="hidden" name="stage_check/plan[${flag}${index}]/content_hidden" id="stage_check/plan[${flag}${index}]/content_hidden" value="<x:out select="$checkplan/content_hidden"/>"/>
						</td>
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					
				</tbody>
					</table>
					<br/>

					<table width="98%" align="center">
					<tr ><td>
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblStageCheck',99,'${param.title }最多只能填写99条')){addNewRow('tblStageCheck');showDateTag('tblStageCheck');}try{top.resizeFrame();}catch(e){};">
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblStageCheck','selcheckplans')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblStageCheck','selcheckplans')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblStageCheck','${param.title }')">
					</td></tr>
	</table>
	<br/>
<script type="text/javascript">
$(function() {
	showAllDateTag("tblStageCheck");
	$("#tblStageCheck tr:even").addClass("li_1");
	$("#tblStageCheck tr:odd").addClass("li_2");
});
</script>